<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        // put your code here
        $texte = "DUPONT";
        echo $texte = strtolower($texte);
        
        $prenom = "francis";
        function texte_min ($nom, $prenom){
            $prenom = "thomas";
            echo "<div> style=\"backgound-color: #CCC\">bonjour monsieur / madame $nom $prenom</div>";
             //echo '<div> style="backgound-color: #CCC\">bonjour monsieur / madame '.$nom</div>';
        }
        
        texte_minuscule("dupont", "truc");
        
        $titre = "mme";
        
        function texte_minuscule()
        {
            global $titre;
            
            echo "bonjour $titre ";
            
            $titre = "mr";
        }
        
        texte_minuscule();
        
        echo $titre;
        
       function texte ($nom, $prenom){
            $prenom = "thomas";
            $texte= "<div> style=\"backgound-color: #CCC\">bonjour monsieur / madame $nom $prenom</div>";
             //echo '<div> style="backgound-color: #CCC\">bonjour monsieur / madame '.$nom</div>';
            return $texte;
        }
        
        echo texte("vv", "nn");
        
        ?>
    </body>
</html>
